<?php 

if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
	echo trim(shell_exec("dirchoser.bat"))."\\";
} else {
	echo trim(shell_exec("zenity --file-selection --directory --display=:0"))."/";
}

	
?>
